package com.welsmann.app.start.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 网址类别
 * @author Welsmann
 *
 */
@Entity
@Table(name = "sitetype")
public class SiteType extends BaseEntity {

	private static final long serialVersionUID = 8983709085576505736L;

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	private String id;
	
	@Column(name = "name", nullable = false, length = 50)
	private String name;
	
	@Column(name = "no", nullable = false, length = 2)
	private int no;
	
	public SiteType() {
		
	}
	
	public SiteType(String id) {
		this.id = id;
	}
	
	public SiteType( String name, int no) {
		this.name = name;
		this.no = no;
	}
	
	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getNo() {
		return no;
	}
	
	public void setNo(int no) {
		this.no = no;
	}
}
